//导入 mongoose
const mongoose = require('mongoose');

//创建结构对象
const GoodsSchema = mongoose.Schema({
  remote_img: String,
  title: String,
  price: Number,
  url: String,
  isZY: Boolean,
  img: String,
  id: Number,
});

//创建模型对象
const GoodsModel = mongoose.model('goods', GoodsSchema);

//暴露
module.exports = GoodsModel;